package com.cg.mapper;

import com.cg.entities.User;
import com.cg.input.UserId;
import com.cg.input.LoginInput;
import com.cg.input.UserInput;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author cheyinbo
 * @description TODO
 * @date 2021/6/24 15:40
 */
@Mapper
public interface UserMapper {

    User login(LoginInput loginInput);

    User queryUser(UserId userId);

    Integer insertUser(UserInput userInput);

    Integer deleteUser(UserId userId);

    Integer updateUser(UserInput userInput);

}
